var _0x4f5a = ['//192.168.178.69:8080', 'current\x20op\x20',
	'\u60a8\u5373\u5c06\u8d2d\u4e70\u54aa\u5495\u9605\u8bfb\u63d0\u4f9b\u7684\u5185\u5bb9\u670d\u52a1\uff0c\u8d2d\u4e70\u5b8c\u6210\u540e\u0035\u5206\u949f\u5185\u751f\u6548\uff0c\u4e0d\u652f\u6301\u9000\u6b3e\u3002',
	'then', 'src', 'fee', 'loaded', 'initUrl', 'MiguSdk', 'sdkType', 'actionDomainSIT', 'http:', 'payUrl', 'jsonp',
	'https', 'appendChild', 'jsonpcallback', 'http', 'contentID', 'productID', 'domain',
	'https://wsdkdl.migu.cn/common/mgread/migu_https.js', 'onload',
	'http://static.st.cmread.com:8117/comment/js/5539fae9a36ba9a70553a0054c04ea05d3588cb4718b/migusdk.js',
	'payTitle', 'catch', 'initData', 'url', 'script', 'minapp', '//wap.cmread.com', 'sit', 'origin', 'ajax',
	'callBackNum', 'pay', '/nap/f/ms.trade.tradeService/getWebSDKParam.json?', 'migusdk.pay...', '400', 'stringify',
	'SDKURL_SIT'
];
var _0xc67d = function(_0x4f5a68, _0xc67d7f) {
	_0x4f5a68 = _0x4f5a68 - 0x0;
	var _0xdbb71b = _0x4f5a[_0x4f5a68];
	return _0xdbb71b;
};
window[_0xc67d('0x8')] = {
	'loaded': ![],
	'SDKURL_HTTP': 'https://wsdkdl.migu.cn/common/mgread/migu_http.js',
	'SDKURL_HTTPS': _0xc67d('0x15'),
	'SDKURL_MINAPP': 'https://wsdkdl.migu.cn/smartapp/mgread/migu_harden.js',
	'SDKURL_SIT': _0xc67d('0x17'),
	'initData': {},
	'netId': '',
	'sdkType': _0xc67d('0xe'),
	'payData': null,
	'callBackNum': 0x0,
	'actionDomain': _0xc67d('0x1e'),
	'actionDomainSIT': _0xc67d('0x0'),
	'initUrl': '/nap/f/ms.trade.tradeService/getWebSDKInitInfo.json?',
	'payUrl': _0xc67d('0x24'),
	'init'(_0x55a15d, _0x2a6948, _0x5440b8) {
		let _0x3f9b7b = this;
		_0x5440b8 = Object['assign']({}, {
			'umark': 'Common2'
		}, _0x5440b8);
		console['log'](_0xc67d('0x1'), _0x5440b8);
		var _0x57fa21 = _0x55a15d['netIds'] || [];
		var _0x488812 = '';
		for (let _0x5445b7 = 0x0; _0x5445b7 < _0x57fa21['length']; _0x5445b7++) {
			let _0x1c9a39 = _0x57fa21[_0x5445b7];
			if (_0x1c9a39[_0xc67d('0x1b')]['indexOf'](_0x55a15d[_0xc67d('0x14')]) != -0x1 && _0x1c9a39[_0xc67d(
					'0x1b')]['indexOf'](_0x55a15d[_0xc67d('0x9')]) != -0x1) {
				_0x488812 = _0x1c9a39['netId'];
				_0x3f9b7b['netId'] = _0x488812;
				break;
			}
		}
		const _0x5332bf = function(_0x34d265, _0x14db60, _0x2143d8, _0x11d5ca) {
			migusdk['init'](_0x34d265, function(_0x2f34c7, _0x5bcbb4, _0x2697aa) {
				if (_0x2f34c7 === '0000') {
					_0x2143d8(_0x2f34c7, _0x5bcbb4, _0x2697aa);
				} else {
					_0x11d5ca(_0x2f34c7, _0x5bcbb4, _0x2697aa);
				}
			}, _0x14db60);
		};
		return new Promise(function(_0xdde51d, _0x564d95) {
			if (_0x3f9b7b['loaded']) {
				_0x5332bf(_0x488812, _0x5440b8, _0xdde51d, _0x564d95);
			} else {
				_0x3f9b7b['loadScript'](_0x2a6948)[_0xc67d('0x3')](function() {
					_0x5332bf(_0x488812, _0x5440b8, _0xdde51d, _0x564d95);
				})[_0xc67d('0x19')](function(_0x587f54) {
					console['error'](
						'\u006d\u0069\u0067\u0075\u0073\u0064\u006b\u52a0\u8f7d\u5931\u8d25\uff01',
						_0x587f54);
				});
			}
		});
	},
	'pay'(_0x43fa5a) {
		console['log'](_0xc67d('0x25'), _0x43fa5a);
		return new Promise(function(_0x53c46e, _0x4102a4) {
			migusdk[_0xc67d('0x23')](_0x43fa5a, function(_0x4d26b0, _0x43fc34, _0x33c214) {
				console['log']('migusdk.pay', _0x4d26b0, _0x43fc34);
				if (_0x4d26b0 === '0') {
					_0x53c46e(_0x4d26b0, _0x43fc34, _0x33c214);
				} else {
					_0x4102a4(_0x4d26b0, _0x43fc34, _0x33c214);
				}
			});
		});
	},
	'loadScript'(_0xc98eeb) {
		let _0x470baa = this;
		var _0xfa98c1 = document['createElement'](_0xc67d('0x1c'));
		if (!_0xc98eeb) {
			const _0x3dae54 = window['location'][_0xc67d('0x20')];
			if (_0x3dae54['indexOf']('https:') >= 0x0) {
				_0xc98eeb = 'https';
			} else if (_0x3dae54['indexOf'](_0xc67d('0xb')) >= 0x0) {
				_0xc98eeb = _0xc67d('0x11');
			}
		}
		switch (_0xc98eeb) {
			case _0xc67d('0x11'):
				_0xfa98c1['src'] = _0x470baa['SDKURL_HTTP'];
				break;
			case _0xc67d('0xe'):
				_0xfa98c1['src'] = _0x470baa['SDKURL_HTTPS'];
				break;
			case _0xc67d('0x1d'):
				_0xfa98c1['src'] = _0x470baa['SDKURL_MINAPP'];
				break;
			case 'sit':
				_0xfa98c1[_0xc67d('0x4')] = _0x470baa[_0xc67d('0x28')];
				break;
			default:
				_0xfa98c1['src'] = _0x470baa['SDKURL_HTTPS'];
		}
		return new Promise(function(_0x32b67c, _0x239a5f) {
			try {
				_0xfa98c1[_0xc67d('0x16')] = function(_0x5465f6) {
					_0x470baa[_0xc67d('0x6')] = !![];
					_0x32b67c(!![]);
				};
			} catch (_0x1f7eee) {
				_0x239a5f(_0x1f7eee);
			}
			document['head'][_0xc67d('0xf')](_0xfa98c1);
		});
	},
	'migupay'(_0x37931d, _0x2f14f0) {
		var _0xa6717c = this;
		_0x37931d['vt'] = '7';
		$['ajax']({
			'type': 'get',
			'url': (_0xa6717c[_0xc67d('0x9')] === 'sit' ? _0xa6717c['actionDomainSIT'] : _0xa6717c[
				'actionDomain']) + _0xa6717c[_0xc67d('0xc')],
			'data': _0x37931d,
			'dataType': _0xc67d('0xd'),
			'jsonp': _0xc67d('0x10'),
			'jsonpcallback': 'callback' + _0xa6717c['callBackNum'],
			'success': function(_0x5ecd18) {
				if (_0x5ecd18) {
					var _0x2c5535 = _0x5ecd18;
					_0x2c5535[_0xc67d('0x18')] = _0x2c5535['payTitle'] ? _0x2c5535['payTitle'] :
						'\u54aa\u5495\u9605\u8bfb\u4e1a\u52a1';
					_0x2c5535['payDesc'] = _0x2c5535['payDesc'] ? _0x2c5535['payDesc'] : _0xc67d('0x2');
					_0x2c5535['netId'] = _0xa6717c['netId'];
					_0x2c5535['payType'] = parseInt(_0x2c5535['payType']);
					_0x2c5535[_0xc67d('0x5')] = parseFloat(_0x2c5535['fee']);
					_0x2c5535[_0xc67d('0x13')] = _0x2c5535['productID'] && _0x2c5535[_0xc67d('0x12')] ?
						'' : _0x2c5535[_0xc67d('0x13')];
					_0xa6717c['payData'] = _0x5ecd18;
					try {
						window[_0xc67d('0x8')]['pay'](JSON[_0xc67d('0x27')](_0xa6717c['payData']))[
							_0xc67d('0x3')](function(_0x1d2988, _0x24a3ef, _0x1201b9) {
							_0x2f14f0 && _0x2f14f0(_0x1d2988, _0x24a3ef, _0x1201b9);
						})['catch'](function(_0x393b73, _0x1035a1, _0x3eca9b) {
							_0x2f14f0 && _0x2f14f0(_0x393b73, _0x1035a1, _0x3eca9b);
						});
					} catch (_0x290967) {
						console['log'](_0x290967);
					}
				}
			},
			'error': function() {
				_0x2f14f0 && _0x2f14f0(_0xc67d('0x26'), '\u8bf7\u6c42\u5931\u8d25', '');
			}
		});
		_0xa6717c['callBackNum']++;
	},
	'getData'(_0xf91d2c, _0xa209c6) {
		var _0x59351d = this;
		var _0x330338 = function(_0x55e743) {
			_0x59351d[_0xc67d('0x1a')] = _0x55e743;
			_0x55e743 = Object['assign']({}, _0xf91d2c, _0x55e743);
			_0x59351d['init'](_0x55e743, _0xf91d2c[_0xc67d('0x9')] || 'https', _0xf91d2c['option'])['then'](
				function(_0xeaeac4, _0x366b58, _0x5f1fc1) {
					_0xa209c6 && _0xa209c6(_0xeaeac4, _0x366b58, _0x5f1fc1);
				})['catch'](function(_0x3e48c4, _0x319da8, _0x314100) {
				_0xa209c6 && _0xa209c6(_0x3e48c4, _0x319da8, _0x314100);
			});
		};
		_0x59351d[_0xc67d('0x9')] = _0xf91d2c['sdkType'];
		$[_0xc67d('0x21')]({
			'type': 'get',
			'cache': ![],
			'url': (_0x59351d[_0xc67d('0x9')] === _0xc67d('0x1f') ? _0x59351d[_0xc67d('0xa')] : _0x59351d[
				'actionDomain']) + _0x59351d[_0xc67d('0x7')] + 'vt=7&channelCode=' + _0xf91d2c[
				'channelCode'],
			'dataType': 'jsonp',
			'jsonp': 'jsonpcallback',
			'jsonpcallback': 'callback' + _0x59351d['callBackNum'],
			'success': function(_0x599add) {
				_0x330338(_0x599add);
			},
			'error': function() {
				_0xa209c6 && _0xa209c6('400', '\u8bf7\u6c42\u5931\u8d25', '');
			}
		});
		_0x59351d[_0xc67d('0x22')]++;
	}
};